package com.greenhouse.service;

import com.greenhouse.config.Request;
import com.greenhouse.model.Greenhouse;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface GreenhouseService {
    Request<Greenhouse> addGreenhouse(Integer userId, String name, String location, Integer area);

    Request<Greenhouse> updateGreenhouse(Greenhouse greenhouse);

    Request<String> deleteGreenhouse(Integer userId, Integer id);

    List<Greenhouse> selectAll(Integer id);

    Request<String> updateGreenhouseStatus(Integer id, Integer status);
}
